package com.xingxue.shopping.model.persist;

import java.util.Date;

public class orderDetails {

	private Integer  ordersid;
	private Integer  userid;
	private Integer  goodsid;
	private String  gprice;
	private Date  orderTime;
	private Integer  ordercount;
	private String  orderprice;
	private Integer  addsressid;
	private Date  senddate;
	private Integer  state;
	public Integer getOrdersid() {
		return ordersid;
	}
	public void setOrdersid(Integer ordersid) {
		this.ordersid = ordersid;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Integer getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}
	public String getGprice() {
		return gprice;
	}
	public void setGprice(String gprice) {
		this.gprice = gprice;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public Integer getOrdercount() {
		return ordercount;
	}
	public void setOrdercount(Integer ordercount) {
		this.ordercount = ordercount;
	}
	public String getOrderprice() {
		return orderprice;
	}
	public void setOrderprice(String orderprice) {
		this.orderprice = orderprice;
	}
	public Integer getAddsressid() {
		return addsressid;
	}
	public void setAddsressid(Integer addsressid) {
		this.addsressid = addsressid;
	}
	public Date getSenddate() {
		return senddate;
	}
	public void setSenddate(Date senddate) {
		this.senddate = senddate;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((addsressid == null) ? 0 : addsressid.hashCode());
		result = prime * result + ((goodsid == null) ? 0 : goodsid.hashCode());
		result = prime * result + ((gprice == null) ? 0 : gprice.hashCode());
		result = prime * result + ((orderTime == null) ? 0 : orderTime.hashCode());
		result = prime * result + ((ordercount == null) ? 0 : ordercount.hashCode());
		result = prime * result + ((orderprice == null) ? 0 : orderprice.hashCode());
		result = prime * result + ((ordersid == null) ? 0 : ordersid.hashCode());
		result = prime * result + ((senddate == null) ? 0 : senddate.hashCode());
		result = prime * result + ((state == null) ? 0 : state.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		orderDetails other = (orderDetails) obj;
		if (addsressid == null) {
			if (other.addsressid != null)
				return false;
		} else if (!addsressid.equals(other.addsressid))
			return false;
		if (goodsid == null) {
			if (other.goodsid != null)
				return false;
		} else if (!goodsid.equals(other.goodsid))
			return false;
		if (gprice == null) {
			if (other.gprice != null)
				return false;
		} else if (!gprice.equals(other.gprice))
			return false;
		if (orderTime == null) {
			if (other.orderTime != null)
				return false;
		} else if (!orderTime.equals(other.orderTime))
			return false;
		if (ordercount == null) {
			if (other.ordercount != null)
				return false;
		} else if (!ordercount.equals(other.ordercount))
			return false;
		if (orderprice == null) {
			if (other.orderprice != null)
				return false;
		} else if (!orderprice.equals(other.orderprice))
			return false;
		if (ordersid == null) {
			if (other.ordersid != null)
				return false;
		} else if (!ordersid.equals(other.ordersid))
			return false;
		if (senddate == null) {
			if (other.senddate != null)
				return false;
		} else if (!senddate.equals(other.senddate))
			return false;
		if (state == null) {
			if (other.state != null)
				return false;
		} else if (!state.equals(other.state))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals(other.userid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "orderDetails [ordersid=" + ordersid + ", userid=" + userid + ", goodsid=" + goodsid + ", gprice="
				+ gprice + ", orderTime=" + orderTime + ", ordercount=" + ordercount + ", orderprice=" + orderprice
				+ ", addsressid=" + addsressid + ", senddate=" + senddate + ", state=" + state + "]";
	}
	
	
	
}
